
package model.dao;

import model.bean.County;

import com.e885.hibernate.BaseHibernateDAO;

/**
 * County Dao
 * 
 * @see model.bean.County
 * @author Eric.Kao gau168.gau@msa.hinet.net
 * @version 1.0
 * @company E885 Group
 * @copyright Copyright (c) 2001-2008
 */

public class CountyDAO extends BaseHibernateDAO
{
	/**
	 * save or update
	 * 
	 * @param instance
	 */
	public void attachDirty( County county )
	{
		doAttachDirty( county );
	}

	/**
	 * delete County
	 * 
	 * @param persistentInstance
	 */
	public void delete( County persistentInstance )
	{
		doDelete( persistentInstance );
	}

	/**
	 * get the data bean of the County
	 * 
	 * @param id
	 * @return
	 */
	public County findById( java.lang.String id )
	{
		return ( County )doFindById( County.class, id );
	}

	/**
	 * save the instance County to be Persistence
	 * 
	 * @param transientInstance
	 */
	public void save( County transientInstance )
	{
		doSave( transientInstance );
	}
}